package com.github.catvod.spider;

import android.content.Context;
import android.text.TextUtils;
import android.util.Base64;
import com.github.catvod.crawler.Spider;
import com.github.catvod.crawler.SpiderDebug;
import com.github.catvod.parser.C0000;
import com.github.catvod.parser.C0001;
import com.github.catvod.parser.C0002;
import com.github.catvod.parser.C0003;
import com.github.catvod.parser.C0004;
import com.github.catvod.parser.C0005;
import com.github.catvod.parser.C0006;
import com.github.catvod.parser.C0007;
import com.github.catvod.parser.C0008;
import com.github.catvod.parser.C0009;
import com.github.catvod.spider.merge.C0011;
import com.github.catvod.spider.merge.C0012;
import com.github.catvod.spider.merge.C0013;
import com.github.catvod.spider.merge.C0014;
import com.github.catvod.spider.merge.C0015;
import com.github.catvod.spider.merge.L;
import com.github.catvod.spider.merge.fP;
import com.github.catvod.spider.merge.jP;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import okhttp3.Call;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

/* loaded from: classes.dex */
public class Xdai extends Spider {

    /* renamed from: short, reason: not valid java name */
    private static final short[] f54short = {1959, 1955, 1952, 1980, 1980, 1976, 2023, 2043, 2022, 2041, 2044, 2022, 2033, 2809, 2815, 2793, 2814, 2721, 2797, 2795, 2793, 2786, 2808, 953, 936, 936, 1013, 941, 939, 957, 938, 1013, 956, 957, 942, 945, 955, 957, 1013, 945, 956, 2009, 1992, 1992, 1941, 1998, 2013, 1994, 1995, 2001, 2007, 2006, 1941, 2011, 2007, 2012, 2013, 2692, 2724, 1079, 1133, 1121, 1133, 1807, 1867, 1874, 1870, 1871, 1248, 2403, 2365, 2341, 2365, 2220, 2274, 2291, 2282, 2221, 2291, 2283, 2291, 3313, 3312, 3312, 2451, 2434, 2436, 2438, 21823, -27457, 2111, 2167, 2165, 2148, 2161, 2144, 2144, 2161, 2144, 2169, 2110, 2169, 2174, 2164, 2165, 2152, 2111, 2148, 2153, 2144, 2165, 2134, 2169, 2172, 2148, 2165, 2146, 2118, 2175, 2164, 2140, 2169, 2147, 2148, 1465, 1462, 1467, 1449, 1449, 1759, 1740, 1755, 1759, 1278, 1267, 1276, 1269, 1128, 1140, 1129, 1135, 25943, 26599, 2035, 2046, 2039, 2018, 2008, 2030, 2019, 2339, 2367, 2363, 2344, 1330, 1315, 1317, 1319, 1313, 1325, 1335, 1324, 1334, 1759, 1754, 1758, 1754, 1735, 967, 988, 967, 978, 991, 1951, 1946, 1920, 1927, 3082, 3138, 3136, 3153, 3140, 3157, 3157, 3140, 3157, 3148, 3083, 3148, 3147, 3137, 3136, 3165, 3082, 3155, 3146, 3137, 3169, 3136, 3153, 3140, 3148, 3145, 1172, 1165, 1158, 1213, 1163, 1158, 1713, 1716, 1710, 1705, 3185, 3129, 3131, 3114, 3135, 3118, 3118, 3135, 3118, 3127, 3184, 3127, 3120, 3130, 3131, 3110, 3185, 3127, 3120, 3127, 3114, 1927, 1928, 1925, 1943, 1943, 2391, 2335, 2333, 2316, 2329, 2312, 2312, 2329, 2312, 2321, 2390, 2321, 2326, 2332, 2333, 2304, 2391, 2321, 2326, 2321, 2316, 742, 739, 761, 766, 2654, 2630, 2638, 2624, 2634, 2653, 3073, 3191, 1722, 2580, 2610, 2596, 2611, 2668, 2560, 2598, 2596, 2607, 2613, 984, 960, 968, 966, 963, 960, 2871, 2859, 2859, 2863, 2942, 2860, 2871, 2867, 2877, 2870, 2917, 2919, 2873, 2943, 2866, 1612, 1611, 1621, 1220, 1241, 1181, 3200, 3272, 3274, 3291, 3278, 3295, 3295, 3278, 3295, 3270, 3201, 3270, 3265, 3275, 3274, 3287, 3200, 3289, 3264, 3275, 3327, 3278, 3293, 3292, 3274, 833, 848, 835, 834, 852, 878, 848, 833, 856, 2806, 2797, 2793, 2791, 2796, 3083, 3098, 3081, 3080, 3102, 3122, 3194, 3192, 3177, 3196, 3181, 3181, 3196, 3181, 3188, 3123, 3188, 3187, 3193, 3192, 3173, 3122, 3182, 3192, 3196, 3183, 3198, 3189, 3153, 3188, 3182, 3177, 1866, 1883, 1885, 1887, 1669, 1905, 1916, 1909, 1888, 1882, 1900, 1889, 1130, 1017, 1015, 1003, 997, 1021, 992, 1014, 993, 821, 816, 810, 813};
    private String h = "";
    private String V0 = C0015.m47(f54short, 0, 13, 1992);
    private String j = "";
    private String q = "";
    private String I = "";
    private String oC = "";

    public Xdai() {
        int m33 = C0011.m33();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m33 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Float.parseFloat(C0007.m25("bClognJAhA3io5yRlVp")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:36:0x0064, code lost:
    
        return r2;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    private java.util.HashMap<java.lang.String, java.lang.String> I(java.lang.String r6) {
        /*
            r5 = this;
            r0 = 0
            java.lang.String r1 = "ۡۦۤ"
            r2 = r0
            r3 = r1
            r1 = r0
        L6:
            int r3 = com.github.catvod.parser.C0006.m20(r3)
            switch(r3) {
                case 56358: goto L2d;
                case 56414: goto L5a;
                case 1746942: goto L1f;
                case 1748831: goto L25;
                case 1748889: goto L12;
                case 1749765: goto L5f;
                case 1751524: goto L4c;
                case 1752610: goto L3a;
                case 1753575: goto L64;
                case 1754530: goto L3f;
                case 1754596: goto L52;
                default: goto Ld;
            }
        Ld:
            short[] r1 = com.github.catvod.spider.Xdai.f54short
            java.lang.String r3 = "ۡۨ۠"
            goto L6
        L12:
            r0 = 13
            r3 = 10
            r4 = 2700(0xa8c, float:3.784E-42)
            java.lang.String r0 = com.github.catvod.parser.C0009.m30(r1, r0, r3, r4)
            java.lang.String r3 = "ۤ۠۠"
            goto L6
        L1f:
            r2.put(r0, r6)
            java.lang.String r3 = "ۦۤۥ"
            goto L6
        L25:
            java.util.HashMap r2 = new java.util.HashMap
            r2.<init>()
            java.lang.String r3 = "ۧ۟ۢ"
            goto L6
        L2d:
            r0 = 23
            r3 = 18
            r4 = 984(0x3d8, float:1.379E-42)
            java.lang.String r0 = com.github.catvod.parser.C0004.m12(r1, r0, r3, r4)
            java.lang.String r3 = "ۧۦۣ"
            goto L6
        L3a:
            java.lang.String r6 = r5.I
            java.lang.String r3 = "ۣۡ"
            goto L6
        L3f:
            r0 = 41
            r3 = 16
            r4 = 1976(0x7b8, float:2.769E-42)
            java.lang.String r0 = com.github.catvod.parser.C0007.m26(r1, r0, r3, r4)
            java.lang.String r3 = "۟ۧۦ"
            goto L6
        L4c:
            r2.put(r0, r6)
            java.lang.String r3 = "ۢۥۨ"
            goto L6
        L52:
            java.lang.String r3 = ""
            r2.put(r0, r3)
            java.lang.String r3 = "ۥۤۡ"
            goto L6
        L5a:
            short[] r1 = com.github.catvod.spider.Xdai.f54short
            java.lang.String r3 = "ۧۤ۟"
            goto L6
        L5f:
            short[] r1 = com.github.catvod.spider.Xdai.f54short
            java.lang.String r3 = "ۡۧ"
            goto L6
        L64:
            return r2
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Xdai.I(java.lang.String):java.util.HashMap");
    }

    /* JADX WARN: Failed to find 'out' block for switch in B:17:0x0057. Please report as an issue. */
    private void q() {
        String[] split = new String(Base64.decode(this.oC.substring(1), 0)).split(C0004.m12(f54short, 57, 2, 2776));
        boolean endsWith = split[0].endsWith(C0007.m26(f54short, 59, 4, 1049));
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = !endsWith ? 1709 : 1678;
                case 204:
                    boolean endsWith2 = split[0].endsWith(C0009.m30(f54short, 63, 5, 1825));
                    int i2 = 1740;
                    while (true) {
                        i2 ^= 1757;
                        switch (i2) {
                            case 17:
                                i2 = endsWith2 ? 1833 : 1802;
                            case 54:
                            case 471:
                                this.h = split[0];
                                int i3 = 48767;
                                while (true) {
                                    i3 ^= 48784;
                                    switch (i3) {
                                        case 14:
                                            break;
                                        case 239:
                                            i3 = 48798;
                                            break;
                                    }
                                }
                                break;
                            case 500:
                                int i4 = 1864;
                                while (true) {
                                    i4 ^= 1881;
                                    switch (i4) {
                                        case 17:
                                            i4 = 48674;
                                            break;
                                        case 47483:
                                            break;
                                    }
                                }
                                break;
                        }
                    }
                    break;
                case 239:
                    break;
            }
        }
        this.h = fP.oq(split[0], null).split(C0007.m26(f54short, 68, 1, 1258))[0].trim();
        boolean contains = this.h.contains(C0004.m12(f54short, 69, 4, 2381));
        int i5 = 48891;
        while (true) {
            i5 ^= 48908;
            switch (i5) {
                case 22:
                case 53:
                    break;
                case 503:
                    i5 = !contains ? 49635 : 48953;
                case 32495:
                    this.h += C0009.m30(f54short, 73, 8, 2179);
                    break;
            }
        }
        this.j = split[1];
        this.q = split[2];
        int length = split.length;
        int i6 = 49666;
        while (true) {
            i6 ^= 49683;
            switch (i6) {
                case 17:
                    i6 = length > 3 ? 49759 : 49728;
                case 50:
                case 76:
                    this.I = split[3];
                    int i7 = 49790;
                    while (true) {
                        i7 ^= 49807;
                        switch (i7) {
                            case 18:
                                break;
                            case 241:
                                i7 = 49821;
                                continue;
                        }
                    }
                    break;
                case 83:
                    this.I = C0007.m26(f54short, 81, 3, 3264);
                    break;
            }
        }
        int m39 = C0013.m39();
        int i8 = 49914;
        while (true) {
            i8 ^= 49931;
            switch (i8) {
                case 497:
                    i8 = m39 >= 0 ? 50658 : 50627;
                case 1711:
                case 1736:
                    break;
                case 1769:
                    System.out.println(Float.parseFloat(C0017.m53("vFmk4lrmRa05F9XGvQX")));
                    break;
            }
            return;
        }
    }

    public String categoryContent(String str, String str2, boolean z, HashMap<String, String> hashMap) {
        String m1 = C0000.m1(f54short, 84, 4, 2531);
        String m47 = C0015.m47(f54short, 88, 2, 1111);
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        q();
                        break;
                    case 239:
                        break;
                }
            }
            int parseInt = Integer.parseInt(str2);
            int i2 = 1740;
            while (true) {
                i2 ^= 1757;
                switch (i2) {
                    case 17:
                        i2 = parseInt == 0 ? 1833 : 1802;
                    case 54:
                    case 471:
                        break;
                    case 500:
                        parseInt = 1;
                        break;
                }
            }
            String str3 = this.h + C0017.m52(f54short, 90, 34, 2064);
            HashMap hashMap2 = new HashMap();
            hashMap2.put(C0012.m37(f54short, 124, 5, 1498), m47);
            hashMap2.put(C0003.m9(f54short, 129, 4, 1726), m47);
            hashMap2.put(C0018.m56(f54short, 133, 4, 1170), m47);
            hashMap2.put(C0017.m52(f54short, 137, 4, 1051), C0011.m35(f54short, 141, 2, 599));
            hashMap2.put(C0017.m52(f54short, 143, 7, 1927), str);
            hashMap2.put(m1, str2);
            hashMap2.put(C0015.m47(f54short, 150, 4, 2394), m47);
            JSONArray jSONArray = new JSONArray();
            fP.BQ(fP.j(), str3, hashMap2, I(this.V0), new L.yh(this, jSONArray) { // from class: com.github.catvod.spider.Xdai.3

                /* renamed from: short, reason: not valid java name */
                private static final short[] f57short = {708, 733, 726, 749, 704, 727, 735, 723, 704, 729, 705, 1485, 1492, 1503, 1508, 1483, 1490, 1496, 1956, 1981, 1974, 1933, 1980, 1971, 1983, 1975, 2706, 2699, 2688, 2747, 2701, 2688, 2612, 2609, 2596, 2609, 3295, 3272, 3278, 3266, 3264, 3264, 3272, 3267, 3273, 3314, 3265, 3268, 3294, 3289, 2291, 2280, 2289, 2289};
                final JSONArray V0;
                final Xdai j;

                {
                    this.j = this;
                    this.V0 = jSONArray;
                    int m48 = C0016.m48();
                    int i3 = 1616;
                    while (true) {
                        i3 ^= 1633;
                        switch (i3) {
                            case 14:
                            case 49:
                                i3 = m48 <= 0 ? 1709 : 1678;
                            case 204:
                                System.out.println(Float.valueOf(C0006.m23("V24")));
                                break;
                            case 239:
                                break;
                        }
                        return;
                    }
                }

                @Override // com.github.catvod.spider.merge.L
                public void onFailure(Call call, Exception exc) {
                    int m44 = C0014.m44();
                    int i3 = 1616;
                    while (true) {
                        i3 ^= 1633;
                        switch (i3) {
                            case 14:
                            case 49:
                                i3 = m44 <= 0 ? 1709 : 1678;
                            case 204:
                                System.out.println(Float.decode(C0015.m46("E546LSJ2AqtvMI1V")));
                                break;
                            case 239:
                                break;
                        }
                        return;
                    }
                }

                /* JADX WARN: Failed to find 'out' block for switch in B:39:0x00ca. Please report as an issue. */
                /* JADX WARN: Failed to find 'out' block for switch in B:6:0x006d. Please report as an issue. */
                @Override // com.github.catvod.spider.merge.L
                public String onResponse(String str4) {
                    JSONArray jSONArray2;
                    int i3 = 0;
                    String m12 = C0004.m12(f57short, 0, 11, 690);
                    String m27 = C0008.m27(f57short, 11, 7, 1467);
                    String m30 = C0009.m30(f57short, 18, 8, 2002);
                    String m56 = C0018.m56(f57short, 26, 6, 2788);
                    try {
                        jSONArray2 = new JSONObject(jP.oC(new JSONObject(str4).getString(C0015.m47(f57short, 32, 4, 2640)), this.j.j, this.j.q)).getJSONArray(C0008.m27(f57short, 36, 14, 3245));
                    } catch (JSONException e) {
                        int i4 = 48767;
                        while (true) {
                            i4 ^= 48784;
                            switch (i4) {
                                case 14:
                                    break;
                                case 239:
                                    i4 = 48798;
                                    break;
                            }
                        }
                    }
                    while (true) {
                        int i5 = i3;
                        int length = jSONArray2.length();
                        int i6 = 1616;
                        while (true) {
                            i6 ^= 1633;
                            switch (i6) {
                                case 14:
                                case 49:
                                    i6 = i5 < length ? 1709 : 1678;
                                case 204:
                                    JSONObject jSONObject = jSONArray2.getJSONObject(i5);
                                    JSONObject jSONObject2 = new JSONObject();
                                    jSONObject2.put(m56, jSONObject.getString(m56));
                                    jSONObject2.put(m30, jSONObject.getString(m30));
                                    jSONObject2.put(m27, jSONObject.optString(m27));
                                    String optString = jSONObject.optString(m12);
                                    boolean equals = optString.equals(C0005.m17(f57short, 50, 4, 2205));
                                    int i7 = 1740;
                                    while (true) {
                                        i7 ^= 1757;
                                        switch (i7) {
                                            case 17:
                                                i7 = equals ? 1833 : 1802;
                                            case 54:
                                            case 471:
                                                break;
                                            case 500:
                                                optString = "";
                                                break;
                                        }
                                    }
                                    jSONObject2.put(m12, optString);
                                    this.V0.put(jSONObject2);
                                    i3 = i5 + 1;
                                    int i8 = 1864;
                                    while (true) {
                                        i8 ^= 1881;
                                        switch (i8) {
                                            case 17:
                                                i8 = 48674;
                                            case 47483:
                                                break;
                                        }
                                    }
                                    break;
                                case 239:
                                    break;
                            }
                        }
                        return str4;
                    }
                }
            });
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(m1, parseInt);
            int length = jSONArray.length();
            int i3 = 1864;
            while (true) {
                i3 ^= 1881;
                switch (i3) {
                    case 17:
                        if (length != 12) {
                            break;
                        } else {
                            i3 = 48736;
                        }
                    case 47384:
                        break;
                    case 47417:
                        parseInt++;
                        break;
                    case 47483:
                        break;
                    default:
                        continue;
                }
                i3 = 48705;
            }
            jSONObject.put(C0006.m18(f54short, 154, 9, 1346), parseInt);
            jSONObject.put(C0017.m52(f54short, 163, 5, 1715), 12);
            jSONObject.put(C0002.m6(f54short, 168, 5, 947), Integer.MAX_VALUE);
            jSONObject.put(C0017.m52(f54short, 173, 4, 2035), jSONArray);
            return jSONObject.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    public String detailContent(List<String> list) {
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                        break;
                    case 49:
                        if (!isEmpty) {
                            break;
                        } else {
                            i = 1709;
                        }
                    case 204:
                        q();
                        break;
                    case 239:
                        break;
                    default:
                        continue;
                }
                i = 1678;
            }
            Init.getPackage();
            String str = this.h + C0009.m30(f54short, 177, 26, 3109);
            HashMap hashMap = new HashMap();
            hashMap.put(C0012.m37(f54short, 203, 6, 1250), list.get(0));
            JSONObject jSONObject = new JSONObject();
            fP.BQ(fP.j(), str, hashMap, I(this.V0), new L.yh(this, jSONObject, new ArrayList(), new ArrayList()) { // from class: com.github.catvod.spider.Xdai.4

                /* renamed from: short, reason: not valid java name */
                private static final short[] f58short = {755, 744, 748, 738, 745, 729, 729, 729, 1457, 1448, 1443, 1432, 1444, 1448, 1449, 1459, 1442, 1449, 1459, 3153, 3144, 3139, 3192, 3139, 3150, 3157, 3138, 3140, 3155, 3144, 3157, 3077, 3100, 3095, 3116, 3090, 3088, 3079, 3100, 3073, 2594, 2617, 2592, 2592, 2847, 2822, 2829, 2870, 2824, 2843, 2828, 2824, 414, 391, 396, 439, 401, 397, 393, 410, 1422, 1431, 1436, 1447, 1416, 1425, 1435, 2507, 2514, 2521, 2530, 2515, 2524, 2512, 2520, 2662, 2687, 2676, 2639, 2681, 2676, 3086, 502, 1331, 1327, 1314, 1338, 1318, 1329, 1308, 1322, 1325, 1317, 1324, 1841, 1844, 1825, 1844, 3066, 3043, 3048, 1203, 1214, 1207, 1186, 1176, 1193, 1190, 1194, 1186, 2530, 2555, 2544, 2507, 2551, 2552, 2549, 2535, 2535, 776, 785, 794, 801, 780, 795, 787, 799, 780, 789, 781, 862, 2680, 2657, 2666, 2641, 2684, 2667, 2659, 2671, 2684, 2661, 2685, 572, 549, 558, 533, 570, 550, 555, 563, 533, 550, 547, 569, 574, 3059, 3060, 3050, 3061, 2606, 2613, 2610, 2602, 1493, 1476, 1495, 1494, 1472, 2013, 1989, 1997, 1987, 1993, 2014, 1008, 1014, 992, 1015, 986, 996, 994, 992, 1003, 1009, 2426, 2402, 2410, 2404, 424, 432, 440, 438, 435, 432, 2340, 2347, 2343, 2351, 1894, 1889, 1919, 3143, 1174, 1167, 1156, 1215, 1168, 1164, 1153, 1177, 1215, 1158, 1170, 1167, 1165, 1560, 1537, 1546, 1585, 1566, 1538, 1551, 1559, 1585, 1563, 1564, 1538};
                final Xdai I;
                final JSONObject V0;
                final ArrayList j;
                final ArrayList q;

                {
                    this.I = this;
                    this.V0 = jSONObject;
                    this.j = r5;
                    this.q = r6;
                    int m4 = C0001.m4();
                    int i2 = 1616;
                    while (true) {
                        i2 ^= 1633;
                        switch (i2) {
                            case 14:
                            case 49:
                                i2 = m4 <= 0 ? 1709 : 1678;
                            case 204:
                                System.out.println(Float.decode(C0002.m7("ocpJBI9KMTPKl")));
                                break;
                            case 239:
                                break;
                        }
                        return;
                    }
                }

                @Override // com.github.catvod.spider.merge.L
                public void onFailure(Call call, Exception exc) {
                }

                /* JADX WARN: Failed to find 'out' block for switch in B:102:0x030f. Please report as an issue. */
                /* JADX WARN: Failed to find 'out' block for switch in B:144:0x03ad. Please report as an issue. */
                /* JADX WARN: Failed to find 'out' block for switch in B:37:0x0221. Please report as an issue. */
                @Override // com.github.catvod.spider.merge.L
                public String onResponse(String str2) {
                    JSONArray jSONArray;
                    int i2;
                    String str3;
                    String m1 = C0000.m1(f58short, 0, 5, 647);
                    String m47 = C0015.m47(f58short, 5, 3, 765);
                    String m9 = C0003.m9(f58short, 8, 11, 1479);
                    String m3 = C0001.m3(f58short, 19, 12, 3111);
                    String m26 = C0007.m26(f58short, 31, 9, 3187);
                    String m30 = C0009.m30(f58short, 40, 4, 2636);
                    String m12 = C0000.m1(f58short, 44, 8, 2921);
                    String m43 = C0014.m43(f58short, 52, 8, 488);
                    String m41 = C0013.m41(f58short, 60, 7, 1528);
                    String m122 = C0004.m12(f58short, 67, 8, 2493);
                    String m432 = C0014.m43(f58short, 75, 6, 2576);
                    String m412 = C0013.m41(f58short, 81, 1, 3108);
                    String m123 = C0004.m12(f58short, 82, 1, 466);
                    String m92 = C0003.m9(f58short, 83, 11, 1347);
                    try {
                        JSONObject jSONObject2 = new JSONObject(jP.oC(new JSONObject(str2).getString(C0013.m41(f58short, 94, 4, 1877)), this.I.j, this.I.q));
                        JSONObject jSONObject3 = jSONObject2.getJSONObject(C0012.m37(f58short, 98, 3, 2956));
                        this.V0.put(m432, jSONObject3.getString(m432));
                        this.V0.put(m122, jSONObject3.getString(m122));
                        this.V0.put(m41, jSONObject3.getString(m41));
                        this.V0.put(C0001.m3(f58short, 101, 9, 1223), jSONObject3.getString(C0006.m18(f58short, 110, 9, 2452)));
                        this.V0.put(m43, jSONObject3.getString(m43));
                        this.V0.put(m12, jSONObject3.getString(m12));
                        String optString = jSONObject3.optString(C0003.m9(f58short, 119, 12, 894));
                        boolean equals = optString.equals(m30);
                        int i3 = 1616;
                        while (true) {
                            i3 ^= 1633;
                            switch (i3) {
                                case 14:
                                case 49:
                                    i3 = equals ? 1709 : 1678;
                                case 204:
                                    optString = "";
                                    break;
                                case 239:
                                    break;
                            }
                        }
                        this.V0.put(C0015.m47(f58short, 131, 11, 2574), optString);
                        this.V0.put(m26, jSONObject3.getString(m26));
                        this.V0.put(m3, jSONObject3.getString(m3));
                        String optString2 = jSONObject3.optString(m9);
                        boolean equals2 = optString2.equals(m30);
                        int i4 = 1740;
                        while (true) {
                            i4 ^= 1757;
                            switch (i4) {
                                case 17:
                                    i4 = equals2 ? 1833 : 1802;
                                case 54:
                                case 471:
                                    break;
                                case 500:
                                    optString2 = "";
                                    break;
                            }
                        }
                        this.V0.put(m9, "" + optString2);
                        jSONArray = jSONObject2.getJSONArray(C0012.m37(f58short, 142, 13, 586));
                        i2 = 0;
                    } catch (JSONException e) {
                        int i5 = 51588;
                        while (true) {
                            i5 ^= 51605;
                            switch (i5) {
                                case 17:
                                    i5 = 51619;
                                    break;
                                case 54:
                                    break;
                            }
                        }
                    }
                    while (true) {
                        int length = jSONArray.length();
                        int i6 = 1864;
                        while (true) {
                            i6 ^= 1881;
                            switch (i6) {
                                case 17:
                                    i6 = i2 < length ? 48736 : 48705;
                                case 47384:
                                    break;
                                case 47417:
                                    JSONObject jSONObject4 = jSONArray.getJSONObject(i2);
                                    JSONArray jSONArray2 = jSONObject4.getJSONArray(C0004.m12(f58short, 155, 4, 2950));
                                    ArrayList arrayList = new ArrayList();
                                    String string = jSONObject4.getJSONObject(m92).getString(C0011.m35(f58short, 159, 4, 2653));
                                    String string2 = jSONObject4.getJSONObject(m92).getString(C0008.m27(f58short, 163, 5, 1445));
                                    boolean contains = string2.contains(m123);
                                    int i7 = 48767;
                                    while (true) {
                                        i7 ^= 48784;
                                        switch (i7) {
                                            case 14:
                                            case 45:
                                                break;
                                            case 76:
                                                string2 = string2.replace(m123, C0017.m52(f58short, 168, 6, 1964));
                                                break;
                                            case 239:
                                                i7 = contains ? 48860 : 48829;
                                        }
                                    }
                                    String optString3 = jSONObject4.getJSONObject(m92).optString(C0001.m3(f58short, 174, 10, 901));
                                    boolean isEmpty2 = optString3.isEmpty();
                                    int i8 = 48891;
                                    while (true) {
                                        i8 ^= 48908;
                                        switch (i8) {
                                            case 22:
                                            case 53:
                                                str3 = optString3;
                                                break;
                                            case 503:
                                                i8 = isEmpty2 ? 49635 : 48953;
                                            case 32495:
                                                str3 = this.I.V0;
                                                break;
                                        }
                                    }
                                    boolean isEmpty3 = string2.isEmpty();
                                    int i9 = 49666;
                                    while (true) {
                                        i9 ^= 49683;
                                        switch (i9) {
                                            case 17:
                                                i9 = isEmpty3 ? 49759 : 49728;
                                            case 50:
                                            case 76:
                                                string2 = C0002.m6(f58short, 184, 4, 2315);
                                                break;
                                            case 83:
                                                break;
                                        }
                                    }
                                    int i10 = 0;
                                    while (true) {
                                        int length2 = jSONArray2.length();
                                        int i11 = 49790;
                                        while (true) {
                                            i11 ^= 49807;
                                            switch (i11) {
                                                case 18:
                                                case 51:
                                                    break;
                                                case 84:
                                                    JSONObject jSONObject5 = jSONArray2.getJSONObject(i10);
                                                    String string3 = jSONObject5.getString(m1);
                                                    boolean isEmpty4 = jSONObject5.getString(m1).isEmpty();
                                                    int i12 = 49914;
                                                    while (true) {
                                                        i12 ^= 49931;
                                                        switch (i12) {
                                                            case 497:
                                                                i12 = isEmpty4 ? 50658 : 50627;
                                                            case 1711:
                                                            case 1736:
                                                                break;
                                                            case 1769:
                                                                string3 = C0005.m17(f58short, 188, 6, 473);
                                                                break;
                                                        }
                                                    }
                                                    arrayList.add(jSONObject5.getString(C0006.m18(f58short, 194, 4, 2378)) + m123 + jSONObject5.getString(C0003.m9(f58short, 198, 3, 1811)) + m412 + string2 + m412 + string3 + m412 + str3);
                                                    int i13 = i10 + 1;
                                                    int i14 = 50689;
                                                    while (true) {
                                                        i14 ^= 50706;
                                                        switch (i14) {
                                                            case 19:
                                                                i14 = 50720;
                                                            case 50:
                                                                break;
                                                        }
                                                    }
                                                    i10 = i13;
                                                    break;
                                                case 241:
                                                    i11 = i10 < length2 ? 49883 : 49852;
                                            }
                                            this.j.add(string);
                                            this.q.add(TextUtils.join(C0002.m6(f58short, 201, 1, 3172), arrayList));
                                            int i15 = i2 + 1;
                                            int i16 = 50813;
                                            while (true) {
                                                i16 ^= 50830;
                                                switch (i16) {
                                                    case 18:
                                                        break;
                                                    case 243:
                                                        i16 = 50844;
                                                        break;
                                                }
                                            }
                                            i2 = i15;
                                        }
                                    }
                                    break;
                                case 47483:
                            }
                            String join = TextUtils.join(m47, this.j);
                            String join2 = TextUtils.join(m47, this.q);
                            this.V0.put(C0017.m52(f58short, 202, 13, 1248), join);
                            this.V0.put(C0006.m18(f58short, 215, 12, 1646), join2);
                        }
                        return str2;
                    }
                }
            });
            JSONObject jSONObject2 = new JSONObject();
            JSONArray jSONArray = new JSONArray();
            jSONArray.put(jSONObject);
            jSONObject2.put(C0003.m9(f54short, 209, 4, 1757), jSONArray);
            return jSONObject2.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    public String homeContent(boolean z) {
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                        break;
                    case 49:
                        if (!isEmpty) {
                            break;
                        } else {
                            i = 1709;
                        }
                    case 204:
                        q();
                        break;
                    case 239:
                        break;
                    default:
                        continue;
                }
                i = 1678;
            }
            String str = this.h + C0007.m26(f54short, 213, 21, 3166);
            System.out.println(str);
            HashMap hashMap = new HashMap();
            JSONArray jSONArray = new JSONArray();
            fP.BQ(fP.j(), str, hashMap, I(this.V0), new L.yh(this, jSONArray) { // from class: com.github.catvod.spider.Xdai.1

                /* renamed from: short, reason: not valid java name */
                private static final short[] f55short = {2310, 2315, 2306, 2327, 2349, 2331, 2326, 2403, 2414, 2407, 2418, 2376, 2425, 2422, 2426, 2418, 1910, 1907, 1894, 1907, 1089, 1100, 1093, 1104, 1130, 1113, 1116, 1094, 1089};
                final JSONArray V0;
                final Xdai j;

                {
                    this.j = this;
                    this.V0 = jSONArray;
                    int m13 = C0004.m13();
                    int i2 = 1616;
                    while (true) {
                        i2 ^= 1633;
                        switch (i2) {
                            case 14:
                            case 49:
                                i2 = m13 <= 0 ? 1709 : 1678;
                            case 204:
                                System.out.println(Integer.parseInt(C0004.m14("e9lbVi6hetkqXD6qtVnGTN3u")));
                                break;
                            case 239:
                                break;
                        }
                        return;
                    }
                }

                @Override // com.github.catvod.spider.merge.L
                public void onFailure(Call call, Exception exc) {
                }

                /* JADX WARN: Failed to find 'out' block for switch in B:6:0x0056. Please report as an issue. */
                @Override // com.github.catvod.spider.merge.L
                public String onResponse(String str2) {
                    JSONArray jSONArray2;
                    int i2 = 0;
                    String m47 = C0015.m47(f55short, 0, 7, 2418);
                    String m35 = C0011.m35(f55short, 7, 9, 2327);
                    try {
                        jSONArray2 = new JSONObject(jP.oC(new JSONObject(str2).getString(C0006.m18(f55short, 16, 4, 1810)), this.j.j, this.j.q)).getJSONArray(C0007.m26(f55short, 20, 9, 1077));
                    } catch (JSONException e) {
                        int i3 = 1864;
                        while (true) {
                            i3 ^= 1881;
                            switch (i3) {
                                case 17:
                                    i3 = 48674;
                                    break;
                                case 47483:
                                    break;
                            }
                        }
                    }
                    while (true) {
                        int i4 = i2;
                        int length = jSONArray2.length();
                        int i5 = 1616;
                        while (true) {
                            i5 ^= 1633;
                            switch (i5) {
                                case 14:
                                case 49:
                                    i5 = i4 < length ? 1709 : 1678;
                                case 204:
                                    JSONObject jSONObject = jSONArray2.getJSONObject(i4);
                                    String string = jSONObject.getString(m35);
                                    String string2 = jSONObject.getString(m47);
                                    JSONObject jSONObject2 = new JSONObject();
                                    jSONObject2.put(m47, string2);
                                    jSONObject2.put(m35, string);
                                    this.V0.put(jSONObject2);
                                    i2 = i4 + 1;
                                    int i6 = 1740;
                                    while (true) {
                                        i6 ^= 1757;
                                        switch (i6) {
                                            case 17:
                                                i6 = 1771;
                                                break;
                                            case 54:
                                                break;
                                        }
                                    }
                                    break;
                                case 239:
                                    break;
                            }
                        }
                        return str2;
                    }
                }
            });
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0015.m47(f54short, 234, 5, 2020), jSONArray);
            return jSONObject.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    public String homeVideoContent() {
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                        break;
                    case 49:
                        if (!isEmpty) {
                            break;
                        } else {
                            i = 1709;
                        }
                    case 204:
                        q();
                        break;
                    case 239:
                        break;
                    default:
                        continue;
                }
                i = 1678;
            }
            JSONArray jSONArray = new JSONArray();
            fP.BQ(fP.j(), this.h + C0006.m18(f54short, 239, 21, 2424), new HashMap(), I(this.V0), new L.yh(this, jSONArray) { // from class: com.github.catvod.spider.Xdai.2

                /* renamed from: short, reason: not valid java name */
                private static final short[] f56short = {1470, 1447, 1452, 1431, 1466, 1453, 1445, 1449, 1466, 1443, 1467, 1204, 1197, 1190, 1181, 1202, 1195, 1185, 629, 620, 615, 604, 621, 610, 622, 614, 1394, 1387, 1376, 1371, 1389, 1376, 2535, 2530, 2551, 2530, 2283, 2280, 2279, 2279, 2284, 2299, 2262, 2277, 2272, 2298, 2301};
                final JSONArray V0;
                final Xdai j;

                {
                    this.j = this;
                    this.V0 = jSONArray;
                    int m0 = C0000.m0();
                    int i2 = 1616;
                    while (true) {
                        i2 ^= 1633;
                        switch (i2) {
                            case 14:
                            case 49:
                                i2 = m0 >= 0 ? 1709 : 1678;
                            case 204:
                                System.out.println(Long.valueOf(C0011.m34("ZEE3dRaLcpiOJmcQ0")));
                                break;
                            case 239:
                                break;
                        }
                        return;
                    }
                }

                @Override // com.github.catvod.spider.merge.L
                public void onFailure(Call call, Exception exc) {
                }

                /* JADX WARN: Failed to find 'out' block for switch in B:6:0x006d. Please report as an issue. */
                @Override // com.github.catvod.spider.merge.L
                public String onResponse(String str) {
                    JSONArray jSONArray2;
                    int i2 = 0;
                    String m47 = C0015.m47(f56short, 0, 11, 1480);
                    String m9 = C0003.m9(f56short, 11, 7, 1218);
                    String m3 = C0001.m3(f56short, 18, 8, 515);
                    String m6 = C0002.m6(f56short, 26, 6, 1284);
                    try {
                        jSONArray2 = new JSONObject(jP.oC(new JSONObject(str).getString(C0018.m56(f56short, 32, 4, 2435)), this.j.j, this.j.q)).getJSONArray(C0007.m26(f56short, 36, 11, 2185));
                    } catch (JSONException e) {
                        int i3 = 1864;
                        while (true) {
                            i3 ^= 1881;
                            switch (i3) {
                                case 17:
                                    i3 = 48674;
                                    break;
                                case 47483:
                                    break;
                            }
                        }
                    }
                    while (true) {
                        int i4 = i2;
                        int length = jSONArray2.length();
                        int i5 = 1616;
                        while (true) {
                            i5 ^= 1633;
                            switch (i5) {
                                case 14:
                                case 49:
                                    i5 = i4 < length ? 1709 : 1678;
                                case 204:
                                    JSONObject jSONObject = jSONArray2.getJSONObject(i4);
                                    String string = jSONObject.getString(m6);
                                    String string2 = jSONObject.getString(m3);
                                    String string3 = jSONObject.getString(m9);
                                    String string4 = jSONObject.getString(m47);
                                    JSONObject jSONObject2 = new JSONObject();
                                    jSONObject2.put(m6, string);
                                    jSONObject2.put(m3, string2);
                                    jSONObject2.put(m9, string3);
                                    jSONObject2.put(m47, string4);
                                    this.V0.put(jSONObject2);
                                    i2 = i4 + 1;
                                    int i6 = 1740;
                                    while (true) {
                                        i6 ^= 1757;
                                        switch (i6) {
                                            case 17:
                                                i6 = 1771;
                                                break;
                                            case 54:
                                                break;
                                        }
                                    }
                                    break;
                                case 239:
                                    break;
                            }
                        }
                        return str;
                    }
                }
            });
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0007.m26(f54short, 260, 4, 650), jSONArray);
            return jSONObject.toString();
        } catch (Exception e) {
            SpiderDebug.log(e);
            return "";
        }
    }

    public void init(Context context, String str) {
        super.init(context);
        this.oC = str;
        int m45 = C0015.m45();
        int i = 1616;
        while (true) {
            i ^= 1633;
            switch (i) {
                case 14:
                case 49:
                    i = m45 <= 0 ? 1709 : 1678;
                case 204:
                    System.out.println(Float.valueOf(C0014.m42("I3nR")));
                    break;
                case 239:
                    break;
            }
            return;
        }
    }

    /* JADX WARN: Code restructure failed: missing block: B:65:0x00e5, code lost:
    
        r7 = r0;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public java.lang.String playerContent(java.lang.String r13, java.lang.String r14, java.util.List<java.lang.String> r15) {
        /*
            Method dump skipped, instructions count: 648
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: com.github.catvod.spider.Xdai.playerContent(java.lang.String, java.lang.String, java.util.List):java.lang.String");
    }

    public String searchContent(String str, boolean z) {
        try {
            boolean isEmpty = this.h.isEmpty();
            int i = 1616;
            while (true) {
                i ^= 1633;
                switch (i) {
                    case 14:
                    case 49:
                        i = isEmpty ? 1709 : 1678;
                    case 204:
                        q();
                        break;
                    case 239:
                        break;
                }
            }
            JSONArray jSONArray = new JSONArray();
            try {
                String str2 = this.h + C0002.m6(f54short, 354, 27, 3101);
                System.out.println(str2);
                HashMap hashMap = new HashMap();
                hashMap.put(C0008.m27(f54short, 381, 4, 1850), C0013.m41(f54short, 385, 1, 1716));
                hashMap.put(C0003.m9(f54short, 386, 7, 1797), C0005.m17(f54short, 393, 1, 1114));
                hashMap.put(C0018.m56(f54short, 394, 8, 914), str);
                fP.BQ(fP.j(), str2, hashMap, I(this.V0), new L.yh(this, jSONArray) { // from class: com.github.catvod.spider.Xdai.7

                    /* renamed from: short, reason: not valid java name */
                    private static final short[] f61short = {2897, 2888, 2883, 2936, 2901, 2882, 2890, 2886, 2901, 2892, 2900, 3124, 3117, 3110, 3101, 3122, 3115, 3105, 1139, 1130, 1121, 1114, 1131, 1124, 1128, 1120, 3130, 3107, 3112, 3091, 3109, 3112, 3322, 3327, 3306, 3327, 1696, 1718, 1714, 1697, 1712, 1723, 1676, 1727, 1722, 1696, 1703, 1056, 1083, 1058, 1058};
                    final JSONArray V0;
                    final Xdai j;

                    {
                        this.j = this;
                        this.V0 = jSONArray;
                        int m39 = C0013.m39();
                        int i2 = 1616;
                        while (true) {
                            i2 ^= 1633;
                            switch (i2) {
                                case 14:
                                case 49:
                                    i2 = m39 >= 0 ? 1709 : 1678;
                                case 204:
                                    System.out.println(Integer.valueOf(C0008.m29("wZjalgCXamPKqHHH5qpVU")));
                                    break;
                                case 239:
                                    break;
                            }
                            return;
                        }
                    }

                    @Override // com.github.catvod.spider.merge.L
                    public void onFailure(Call call, Exception exc) {
                    }

                    /* JADX WARN: Failed to find 'out' block for switch in B:39:0x00ca. Please report as an issue. */
                    /* JADX WARN: Failed to find 'out' block for switch in B:6:0x006d. Please report as an issue. */
                    @Override // com.github.catvod.spider.merge.L
                    public String onResponse(String str3) {
                        JSONArray jSONArray2;
                        int i2 = 0;
                        String m47 = C0015.m47(f61short, 0, 11, 2855);
                        String m41 = C0013.m41(f61short, 11, 7, 3138);
                        String m472 = C0015.m47(f61short, 18, 8, 1029);
                        String m9 = C0003.m9(f61short, 26, 6, 3148);
                        try {
                            jSONArray2 = new JSONObject(jP.oC(new JSONObject(str3).getString(C0012.m37(f61short, 32, 4, 3230)), this.j.j, this.j.q)).getJSONArray(C0017.m52(f61short, 36, 11, 1747));
                        } catch (JSONException e) {
                            int i3 = 48767;
                            while (true) {
                                i3 ^= 48784;
                                switch (i3) {
                                    case 14:
                                        break;
                                    case 239:
                                        i3 = 48798;
                                        break;
                                }
                            }
                        }
                        while (true) {
                            int i4 = i2;
                            int length = jSONArray2.length();
                            int i5 = 1616;
                            while (true) {
                                i5 ^= 1633;
                                switch (i5) {
                                    case 14:
                                    case 49:
                                        i5 = i4 < length ? 1709 : 1678;
                                    case 204:
                                        JSONObject jSONObject = jSONArray2.getJSONObject(i4);
                                        JSONObject jSONObject2 = new JSONObject();
                                        jSONObject2.put(m9, jSONObject.getString(m9));
                                        jSONObject2.put(m472, jSONObject.getString(m472));
                                        jSONObject2.put(m41, jSONObject.optString(m41));
                                        String optString = jSONObject.optString(m47);
                                        boolean equals = optString.equals(C0007.m26(f61short, 47, 4, 1102));
                                        int i6 = 1740;
                                        while (true) {
                                            i6 ^= 1757;
                                            switch (i6) {
                                                case 17:
                                                    i6 = equals ? 1833 : 1802;
                                                case 54:
                                                case 471:
                                                    break;
                                                case 500:
                                                    optString = "";
                                                    break;
                                            }
                                        }
                                        jSONObject2.put(m47, optString);
                                        this.V0.put(jSONObject2);
                                        i2 = i4 + 1;
                                        int i7 = 1864;
                                        while (true) {
                                            i7 ^= 1881;
                                            switch (i7) {
                                                case 17:
                                                    i7 = 48674;
                                                case 47483:
                                                    break;
                                            }
                                        }
                                        break;
                                    case 239:
                                        break;
                                }
                            }
                            return str3;
                        }
                    }
                });
            } catch (Exception e) {
                int i2 = 1740;
                while (true) {
                    i2 ^= 1757;
                    switch (i2) {
                        case 17:
                            i2 = 1771;
                            break;
                        case 54:
                            break;
                    }
                }
            }
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(C0018.m56(f54short, 402, 4, 857), jSONArray);
            return jSONObject.toString();
        } catch (Exception e2) {
            SpiderDebug.log(e2);
            return "";
        }
    }
}
